<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../vue.js"></script>
</head>
<body>
    <div id="app">
        <p>按键修饰符：按下指定的键时生效。使用场景：按回车键登陆</p>
        <input type="text" @keyup.enter="show1" name="content">
        <p>系统修饰符：按下指定的几个键时生效.</p>
        <input type="text" @keyup.ctrl.shift.g="show2">
    </div>
    <script>
        let vm = new Vue({
            el: '#app',
            data: {
                
            },
            methods: {
                show1(e) {
                    console.log(e.keyCode);
                },
                show2() {
                    console.log(666);
                }
            }
        })
    </script>
</body>
</html>